<template>
  <div id="app">
    <!-- 路由出口，是一个会变的组件 -->
    <router-view></router-view>
    <!-- 命名视图，页面中包含两个会变的组件，需要分别处理 -->
    <!-- <router-view name="top"></router-view>
    <router-view name="bot"></router-view> -->
    <!-- 以上是命名视图 -->
    <!-- <HelloWorld11 msg="Welcome to Your Vue.js App"/>
    <com-big></com-big> -->
    <!-- slot-scope="user"目的是获取子组件中的数据 -->
    <!-- <com-slot>
      <template slot-scope="user">
        <div>
          <h1>{{user.user.firstName}}</h1>
        </div>
      </template>
      <mark>666</mark>
      <mark slot="top1">555</mark>
    </com-slot> -->
    <!-- <com-mixin></com-mixin> -->
    <!-- <com-ref></com-ref> -->
    <!-- <div :is="comName"></div> -->
    <!-- <contact></contact> -->
  </div>
</template>

<script>
// 导入组件
// import HelloWorld from './components/HelloWorld.vue'
// import comBig from './components/comBig.vue'
// import comSlot from './components/comSlot.vue'
// import comRef from './components/comRef.vue'
// import comMixin from './components/comMixin.vue'
// import comIs from './components/comIs.vue'
// import Contact from './components/Contact.vue'

export default {
  name: 'App',
  // 局部注册
  components: {
    // 冒号前面是组件名，冒号后面是组件的内容
    // HelloWorld: HelloWorld,
    // comBig,
    // comSlot,
    // comMixin,
    // comRef,
    // comIs,
    // Contact
  },
  data() {
    return {
      name: 'Tom',
      comName: 'com-is'
    }
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.aaa {
  color: red;
}
</style>
